package wqh.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.GeoBuildingDao;
import wqh.domain.GeoBuilding;
import wqh.service.GeoBuildingService;

import java.util.List;

@Service("geoBuildingService")
public class GeoBuildingServiceImpl implements GeoBuildingService{

    @Autowired
    private GeoBuildingDao geoBuildingDao;

    public List<GeoBuilding> findAllRecord() {
        return this.geoBuildingDao.findAllRecord();
    }

    public List<GeoBuilding> findRecordByClass(GeoBuilding geoBuilding) {
        return this.geoBuildingDao.findRecordByClass(geoBuilding);
    }

    public List<GeoBuilding> findRecordByClass2(GeoBuilding geoBuilding) {
        return this.geoBuildingDao.findRecordByClass2(geoBuilding);
    }

    public GeoBuilding findRecordById(Integer id) {
        return this.geoBuildingDao.findRecordById(id);
    }

    public String findNameById(Integer id) {
        return this.geoBuildingDao.findNameById(id);
    }

    public int insertRecord(GeoBuilding geoBuilding) {
        return this.geoBuildingDao.insertRecord(geoBuilding);
    }

    public int updateRecord(GeoBuilding geoBuilding) {
        return this.geoBuildingDao.updateRecord(geoBuilding);
    }

    public int deleteRecord(Integer id) {
        return this.geoBuildingDao.deleteRecord(id);
    }
}
